package com.itcoon.cloud.framework.mybatis.typehandler;

import java.util.Collection;

public class LongCollectionToSegmentsTypeHandler extends AbstractCollectionToSegmentsTypeHandler<Long> {

    protected LongCollectionToSegmentsTypeHandler(Class<? extends Collection> collectionType) {
        super(collectionType);
    }

    @Override
    public String convertSingle(Long data) {
        return String.valueOf(data);
    }

    @Override
    public Long reverseConvertSingle(String item) {
        return Long.valueOf(item);
    }
}
